﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.ManagementConsole;
using SharpShare.Configuration;
using SharpShare.Management.Mmc.Views;

namespace SharpShare.Management.Mmc.Nodes {
    public class SharesNode : ScopeNode {
        public SharesNode(ServiceElement element)
            : base(true) {

            this.Element = element;
            this.DisplayName = "Shares";
            this.ImageIndex = (int)Icon.Hand;
            this.SelectedImageIndex = (int)Icon.Hand;

            this.ViewDescriptions.Add(new MmcListViewDescription(MmcListViewOptions.SingleSelect | MmcListViewOptions.ExcludeScopeNodes) {
                DisplayName = "Shares",
                ViewType = typeof(SharesListView),
                Tag = this.Element
            });
        }

        public ServiceElement Element { get; private set; }


    }
}
